package com.houger.ddd.redpacket.client.impl;

import com.houger.ddd.redpacket.client.UserClientService;
import com.houger.ddd.redpacket.facade.dto.RedPacketDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author Houger.
 * @date 2024年04月18日 16:02.
 */
@Slf4j
@Service
public class UserClientServiceImpl implements UserClientService {

//    @Resource
//    RpcUserClientService rpcUserClientService;
    @Override
    public String deduction(final RedPacketDto dto) {

//        return rpcUserClientService.deduction(UserClientAdapter.convert(dto););
        // 模拟扣减余额
        log.info("扣减成功 money={}",dto);
        return "ok";
    }
}
